package com.zelix;

import java.io.*;

public class as
    implements Serializable
{

    private String serialFile;
    private String serialDir;
    private String c;
    private String d;
    private String e;
    private boolean f;
    private String g;
    private String h;
    private String i;
    private int j;
    private boolean k;
    private boolean bool_1;
    private u4 m;
    private tx n;

    public as(String userDir, String serialDataFile)
    {
        f = true;
        j = 1;
        k = true;
        bool_1 = true;
        m = new u4(0, 0);
        n = new tx(400, 300);
        serialFile = serialDataFile;
        serialDir = userDir;
        File file = new File(userDir, serialDataFile);
        if(file.exists() && !file.isDirectory() && file.canRead())
            try
            {
                FileInputStream fileinputstream = new FileInputStream(file);
                ObjectInputStream objectinputstream = new ObjectInputStream(fileinputstream);
                as as1 = (as)objectinputstream.readObject();
                c = as1.c;
                d = as1.d;
                e = as1.e;
                f = as1.f;
                g = as1.g;
                h = as1.h;
                i = as1.i;
                j = as1.j;
                k = as1.k;
                bool_1 = as1.bool_1;
                m = as1.m;
                n = as1.n;
            }
            catch(IOException ioexception) { }
            catch(ClassNotFoundException classnotfoundexception) { }
            catch(ClassCastException classcastexception) { }
            catch(Throwable throwable) { }
    }

    public String a()
    {
        return d;
    }

    public u4 b()
    {
        return m;
    }

    public tx c()
    {
        return n;
    }

    public String d()
    {
        return c;
    }

    public String e()
    {
        return i;
    }

    public String f()
    {
        return e;
    }

    public String g()
    {
        return g;
    }

    public String h()
    {
        return h;
    }

    public boolean i()
    {
        return f;
    }

    public boolean j()
    {
        return k;
    }

    public boolean k()
    {
        return bool_1;
    }

    public synchronized void l()
    {
        a(serialDir, serialFile);
    }

    private synchronized void a(String dir, String filename)
    {
        File file = new File(dir, filename);
        if(file.exists() && (file.isDirectory() || !file.canWrite()))
            return;
        try
        {
            FileOutputStream fileoutputstream = new FileOutputStream(file);
            ObjectOutputStream objectoutputstream = new ObjectOutputStream(fileoutputstream);
            objectoutputstream.writeObject(this);
        }
        catch(IOException ioexception) { }
    }

    public synchronized void a(String s)
    {
        d = s;
    }

    public synchronized void a(int i1, int j1)
    {
        m = new u4(i1, j1);
    }

    public synchronized void b(int i1, int j1)
    {
        n = new tx(i1, j1);
    }

    public synchronized void b(String s)
    {
        c = s;
    }

    public synchronized void a(boolean flag)
    {
        f = flag;
    }

    public synchronized void b(boolean flag)
    {
        k = flag;
    }

    public synchronized void c(String s)
    {
        i = s;
    }

    public synchronized void d(String s)
    {
        e = s;
    }

    public synchronized void e(String s)
    {
        g = s;
    }

    public synchronized void f(String s)
    {
        h = s;
    }
}